package com.orange.base.component.biztool.simulateddata.service;

import java.util.HashMap;
import java.util.Map;

public class SimulatedDataParam {

    public SimulatedDataParam() {

    }

    public SimulatedDataParam(Map<String, Object> data) {
        this.min = toStr(data.get("min"));
        this.max = toStr(data.get("max"));
        this.value = toStr(data.get("value"));
        this.fileType = toStr(data.get("fileType"));
        this.dictId = toStr(data.get("dictId"));
        this.fieldName = toStr(data.get("fieldName"));
    }

    private String toStr(Object o) {
        return o == null ? "" : o.toString();
    }

    /**
     * 名称
     */
    private String fieldName;

    /**
     * 最小值
     */
    private String min;

    /**
     * 最大值
     */
    private String max;

    /**
     * 输入值
     */
    private String value;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 字典id
     */
    private String dictId;

    /**
     * 主表数据
     */
    private Map<String, Object> primaryTableData = new HashMap<String, Object>();

    /**
     * 行记录
     */
    private Map<String, Object> row = new HashMap<String, Object>();

    /**
     * 扩展参数
     */
    private Map<String, Object> extParam = null;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getMin() {
        return min;
    }

    public void setMin(String min) {
        this.min = min;
    }

    public String getMax() {
        return max;
    }

    public void setMax(String max) {
        this.max = max;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getDictId() {
        return dictId;
    }

    public void setDictId(String dictId) {
        this.dictId = dictId;
    }

    public Map<String, Object> getRow() {
        return row;
    }

    public Map<String, Object> getPrimaryTableData() {
        return primaryTableData;
    }

    public Map<String, Object> getExtParam() {
        return extParam;
    }

    public void setExtParam(Map<String, Object> extParam) {
        this.extParam = extParam;
    }

}
